package com.xmg.boot.demo.bootlesson1;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@SpringBootApplication
//@Configuration
//@EnableAsync    //添加启动类 @EnableAsyn
//@MapperScan(basePackages = {"com.xmg.boot.demo.bootlesson1.user.mapper", "com.xmg.boot.demo.bootlesson1.user.mapper.dm"})
@EnableTransactionManagement
public class BootLesson1Application {

    public static void main(String[] args) {
        SpringApplication.run(BootLesson1Application.class, args);
    }

}
